package com.zsw.procure_system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName params
 */
@TableName(value ="params")
public class Params implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String itemcatid;

    /**
     * 
     */
    private String paramdata;

    /**
     * 
     */
    private String specsname;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getItemcatid() {
        return itemcatid;
    }

    /**
     * 
     */
    public void setItemcatid(String itemcatid) {
        this.itemcatid = itemcatid;
    }

    /**
     * 
     */
    public String getParamdata() {
        return paramdata;
    }

    /**
     * 
     */
    public void setParamdata(String paramdata) {
        this.paramdata = paramdata;
    }

    /**
     * 
     */
    public String getSpecsname() {
        return specsname;
    }

    /**
     * 
     */
    public void setSpecsname(String specsname) {
        this.specsname = specsname;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Params other = (Params) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getItemcatid() == null ? other.getItemcatid() == null : this.getItemcatid().equals(other.getItemcatid()))
            && (this.getParamdata() == null ? other.getParamdata() == null : this.getParamdata().equals(other.getParamdata()))
            && (this.getSpecsname() == null ? other.getSpecsname() == null : this.getSpecsname().equals(other.getSpecsname()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getItemcatid() == null) ? 0 : getItemcatid().hashCode());
        result = prime * result + ((getParamdata() == null) ? 0 : getParamdata().hashCode());
        result = prime * result + ((getSpecsname() == null) ? 0 : getSpecsname().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", itemcatid=").append(itemcatid);
        sb.append(", paramdata=").append(paramdata);
        sb.append(", specsname=").append(specsname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}